//
//  AlarmTool.h
//  Voice2AlarmNote
//
//  Created by onemade on 14-10-28.
//  Copyright (c) 2014年 CNPC. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AppDelegate.h"
#import "Alarm.h"

@interface AlarmTool : NSObject

singleton_for_interface(AlarmTool)

@property (strong, nonatomic) Alarm *curAlarm;

-(BOOL)isAlarmExist:(int)identifier;
-(BOOL)isExistSameTimeAlarm:(NSString *)time;
-(BOOL)addAlarm:(Alarm *)alarm;
-(BOOL)updateAlarm:(Alarm *)alarm;
-(BOOL)deleteAlarm:(Alarm *)alarm;
-(NSMutableArray *)fetchAllAlarms;
-(Alarm *)findAlarmById:(int)identifier;
-(int)recieveLastObjectID;
@end
